package com.msw.sentinel.rest;

import com.msw.sentinel.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mashuangwei
 * @version 1.0.0
 * @date 2019-09-01 18:36:21
 */
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/test")
    public String test(String contrent){
        return demoService.sayHi(contrent);
    }

    @GetMapping("/hello")
    public String testHello(String contrent){
        return demoService.HelloWorld(contrent);
    }
}
